package com.vhall.component.entity.room.enums;

import com.vhall.component.entity.dictionary.enums.BaseEnum;

/**
 * LiveRormalEnum-
 * 正式/测试房间标识 测试直播:0,正式直播:1
 * @author xing.wang
 * @date 2023/10/23
 */

public enum LiveRormalEnum implements BaseEnum {
    TEST_LIVE(0, " 测试直播"),  OFFICIAL_LIVE(1, "正式直播");

    private final Integer value;
    private final String name;

    LiveRormalEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }

    public static String getNameByValue(Integer value) {
        for (RefFormEnum e : RefFormEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getName();
            }
        }
        return null;
    }
}
